﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Dto;
using Happy.Dto.CommonModel.TreeLike;
using Happy.Archetype;

namespace Happy.Navigation.Query.Menus
{
    [ViewModel]
    public sealed class MenuView :
        IId<Guid>,
        IOptimisticKey,
        ITreeNodeView<Guid>
    {
        public Guid Id { get; set; }

        public byte[] OptimisticKey { get; set; }

        public string Title { get; set; }

        public string Url { get; set; }

        public string Icon { get; set; }

        public string NodePath { get; set; }

        public Guid? ParentId { get; set; }

        public int Order { get; set; }
    }
}
